package lab01;

public class Test13 {
    public static void main(String[] args) {
        for(int i=0;i<1000;i++){
            int one=i%10;
            int ten=i%100/10;
            int hundred=i/100;
            if(i==hundred*hundred*hundred+ten*ten*ten+one*one*one){
                System.out.print(i);
                System.out.println(","+i+"是一个水仙数");
            }
        }
    }
}
